<?php
	//Value object for all MSC registration information
	class Mahasamadhi_registration_value extends Model
	{		
		private $msRegHistoryID=0;
		private $eventID=0;
		private $regCode="";
		private $firstName="";
		private $lastName="";
		private $chykreffirstName="";
		private $chykreflastName="";
		private $email_contact="";
		private $phone="";
		private $address="";
		private $address1="";
		private $city="";
		private $state="";
		private $country="";
		private $zip="";
		private $is_teacher = 0;
		private $special_needs_wheelchair=0;
		private $special_needs_room=0;
		private $special_requests="";
		private $numAdultRegistered = 0;
		private $numChildRegistered = 0;
		private $numBiksha = 0;
		private $numArathi = 0;
		private $adultInfo;
		private $childInfo;
		private $chykInfo;
		private $bikshaInfo;
		private $arathiInfo;
		private $numCHYKRegistered = 0;
		private $registrationFeeCase1;
		private $registrationFeeCase2;
		private $registrationFeeCase3;
		private $registrationFeeCase4;
		private $registrationFeeCase5;
		private $registrationType=0;
		private $needAccommodation=1;
		private $registrationTypeDescription="";
		private $registrationCase=0;
		private $registrationCaseDescription="";
		private $registrationFee=0.0;
		private $sponsor=0.0;
		private $donation=0.0;
		private $general_discount = 0.0;
		private $amountCommitted=0.0;
		private $amountPaid=0.0;
		private $teacher_discount = 100.0;
		private $paymentType="";
		private $checkNum="";
		private $paymentTransactionID="";
		private $paymentStatus=0;
		private $paymentResponse="";
		private $comments="";		
		private $currentyear;
		private $dateCreated;
		private $dateModified;
		private $enabled = 1;

		public function getMSRegHistoryID(){ return $this->MSRegHistoryID; }
		public function setMSRegHistoryID( $value ){ $this->MSRegHistoryID = $value; }

		public function getRegCode(){ return $this->regCode; }
		public function setRegCode( $value ){ $this->regCode = $value; }

		public function getEventID(){ return $this->eventID; }
		public function setEventID( $value ){ $this->eventID = $value; }

		public function getFirstName(){ return $this->firstName; }
		public function setFirstName( $value ){ $this->firstName = $value; }

		public function getLastName(){ return $this->lastName; }
		public function setLastName( $value ){ $this->lastName = $value; }

		public function getCHYKRefFirstName(){ return $this->chykreffirstName; }
		public function setCHYKRefFirstName( $value ){ $this->chykreffirstName = $value; }

		public function getCHYKRefLastName(){ return $this->chykreflastName; }
		public function setCHYKRefLastName( $value ){ $this->chykreflastName = $value; }

		public function getEmail(){ return $this->email_contact; }
		public function setEmail( $value ){ $this->email_contact = $value; }

		public function getPhone(){ return $this->phone; }
		public function setPhone( $value ){ $this->phone = $value; }

		public function getAddress(){ return $this->address; }
		public function setAddress( $value ){ $this->address = $value; }

		public function getAddress1(){ return $this->address1; }
		public function setAddress1( $value ){ $this->address1 = $value; }

		public function getCity(){ return $this->city; }
		public function setCity( $value ){ $this->city = $value; }

		public function getState(){ return $this->state; }
		public function setState( $value ){ $this->state = $value; }

		public function getCountry(){ return $this->country; }
		public function setCountry( $value ){ $this->country = $value; }

		public function getZip(){ return $this->zip; }
		public function setZip( $value ){ $this->zip = $value; }

		public function getIsTeacher(){ return $this->is_teacher; }
		public function setIsTeacher( $value ){ $this->is_teacher = $value; }

		public function getSpecialNeedsWheelchair(){ return $this->special_needs_wheelchair; }
		public function setSpecialNeedsWheelchair( $value ){ $this->special_needs_wheelchair = $value; }

		public function getSpecialNeedsRoom(){ return $this->special_needs_room; }
		public function setSpecialNeedsRoom( $value ){ $this->special_needs_room = $value; }

		public function getSpecialRequests(){ return $this->special_requests; }
		public function setSpecialRequests( $value ){ $this->special_requests = $value; }

		public function getRegistrationFeeCase1(){ return $this->registrationFeeCase1; }
		public function setRegistrationFeeCase1( $value ){ $this->registrationFeeCase1 = $value; }

		public function getRegistrationFeeCase2(){ return $this->registrationFeeCase2; }
		public function setRegistrationFeeCase2( $value ){ $this->registrationFeeCase2 = $value; }

		public function getRegistrationFeeCase3(){ return $this->registrationFeeCase3; }
		public function setRegistrationFeeCase3( $value ){ $this->registrationFeeCase3 = $value; }

		public function getRegistrationFeeCase4(){ return $this->registrationFeeCase4; }
		public function setRegistrationFeeCase4( $value ){ $this->registrationFeeCase4 = $value; }

		public function getRegistrationFeeCase5(){ return $this->registrationFeeCase5; }
		public function setRegistrationFeeCase5( $value ){ $this->registrationFeeCase5 = $value; }

		public function getRegistrationFee(){ return $this->registrationFee; }
		public function setRegistrationFee( $value ){ $this->registrationFee = $value; }

		public function getSponsorship(){ return $this->sponsor; }
		public function setSponsorship( $value ){ $this->sponsor = $value; }

		public function getDonation(){ return $this->donation; }
		public function setDonation( $value ){ $this->donation = $value; }

		public function getGeneralDiscount(){ return $this->general_discount; }
		public function setGeneralDiscount( $value ){ $this->general_discount = $value; }

		public function getAmountCommitted(){ return $this->amountCommitted; }
		public function setAmountCommitted( $value ){ $this->amountCommitted = $value; }

		public function getAmountPaid(){ return $this->amountPaid; }
		public function setAmountPaid( $value ){ $this->amountPaid = $value; }

		public function getRegistrationCase(){ return $this->registrationCase; }
		public function setRegistrationCase( $value ){ $this->registrationCase = $value; }

		public function getRegistrationCaseDescription(){ return $this->registrationCaseDescription; }
		public function setRegistrationCaseDescription( $value ){ $this->registrationCaseDescription = $value; }

		public function getRegistrationType(){ return $this->registrationType; }
		public function setRegistrationType( $value ){ $this->registrationType = $value; }

		public function getNeedAccommodation(){ return $this->needAccommodation; }
		public function setNeedAccommodation( $value ){ $this->needAccommodation = $value; }

		public function getRegistrationTypeDescription(){ return $this->registrationTypeDescription; }
		public function setRegistrationTypeDescription( $value ){ $this->registrationTypeDescription = $value; }

		public function getNumAdultRegistered(){ return $this->numAdultRegistered; }
		public function setNumAdultRegistered( $value ){ $this->numAdultRegistered = $value; }

		public function getNumChildRegistered(){ return $this->numChildRegistered; }
		public function setNumChildRegistered( $value ){ $this->numChildRegistered = $value; }

		public function getNumCHYKRegistered(){ return $this->numCHYKRegistered; }
		public function setNumCHYKRegistered( $value ){ $this->numCHYKRegistered = $value; }

		public function getNumBiksha(){ return $this->numBiksha; }
		public function setNumBiksha( $value ){ $this->numBiksha = $value; }

		public function getNumArathi(){ return $this->numArathi; }
		public function setNumArathi( $value ){ $this->numArathi = $value; }

		public function getAdultInfo(){ return $this->adultInfo; }
		public function setAdultInfo( $value ){ $this->adultInfo = $value; }

		public function getChildInfo(){ return $this->childInfo; }
		public function setChildInfo( $value ){ $this->childInfo = $value; }

		public function getCHYKInfo(){ return $this->chykInfo; }
		public function setCHYKInfo( $value ){ $this->chykInfo = $value; }

		public function getBikshaInfo(){ return $this->bikshaInfo; }
		public function setBikshaInfo( $value ){ $this->bikshaInfo = $value; }

		public function getArathiInfo(){ return $this->arathiInfo; }
		public function setArathiInfo( $value ){ $this->arathiInfo = $value; }

		public function getPaymentType(){ return $this->paymentType; }
		public function setPaymentType( $value ){ $this->paymentType = $value; }

		public function getCheckNum(){ return $this->checkNum; }
		public function setCheckNum( $value ){ $this->checkNum = $value; }

		public function getPaymentTransactionID(){ return $this->paymentTransactionID; }
		public function setPaymentTransactionID( $value ){ $this->paymentTransactionID = $value; }

		public function getPaymentStatus(){ return $this->paymentStatus; }
		public function setPaymentStatus( $value ){ $this->paymentStatus = $value; }

		public function getPaymentResponse(){ return $this->paymentResponse; }
		public function setPaymentResponse( $value ){ $this->paymentResponse = $value; }

		public function getComments(){ return $this->comments; }
		public function setComments( $value ){ $this->comments = $value; }

		public function getCurrentYear(){ return $this->currentyear; }
		public function setCurrentYear( $value ){ $this->currentyear = $value; }

		public function getDateCreated(){ return $this->dateCreated; }
		public function setDateCreated( $value ){ $this->dateCreated = $value; }

		public function getDateModified(){ return $this->dateModified; }
		public function setDateModified( $value ){ $this->dateModified = $value; }

		public function getEnabled(){ return $this->enabled; }
		public function setEnabled( $value ){ $this->enabled = $value; }

		public function getTotalRegistrationFee()
		{
			$tot_with_discount = $this->getRegistrationFee() + $this->getSponsorship() + $this->getDonation() - (100*$this->getIsTeacher()) - $this->getGeneralDiscount();
			if ($tot_with_discount > 0.01)
				return $tot_with_discount;
			else
				return 0.0;
		}

		public function getTotalNumRegistered()
		{
			return ( $this->getNumAdultRegistered() + $this->getNumChildRegistered() + $this->getNumCHYKRegistered() );
		}
		
		public static function cast(Mahasamadhi_registration_value $object)
		{
        	return $object;
    	}
	}
?>